Skip to content

Conversation

@ike-agu
Copy link

@ike-agu ike-agu commented Dec 28, 2025

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

This PR contains my sprint 5 prep exercises:

  • Why we use types
  • Type checking with mypy
  • Classes and Objects
  • Methods
  • Data classes
  • Generics
  • Type guided refactoring
  • Enums
  • Inheritance

@github-actions

This comment has been minimized.

@ike-agu ike-agu changed the title London | SDC-Nov-2025| Ikenna Agulobi | Sprint-5| Prep exercise python London | SDC-Nov-2025| Ikenna Agulobi | Sprint 5| Prep exercise python Dec 28, 2025
@ike-agu ike-agu added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 28, 2025
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jan 14, 2026
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good work on these tasks, there are some areas where you could improve further

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has this file passed the mypy type checker?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you describe the difference and any dis/advantage of using a class method vs a function?

def print_family_tree(person: Person) -> None:
print(person.name)
for child in person.children:
print(f"- {child.name} ({child.age})")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this print grandchildren recursively?

if best_os != person.preferred_operating_system and best_count > preferred_count:
print(
f"If you are willing to accept {best_os.value} instead,"
f"You're more likely to get a laptop. {best_count} available)."

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you have an extra bracket here you dont need

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants